cc:=cc
lang:=-std=c90
ops:=-pipe -MMD -trigraphs -m64 -O0 -ggdb -funsigned-char
warns:=-Wall -Wextra -Werror -pedantic-errors

build: build/cards.o build/encryps.o
	$(cc) -o build/encryps build/cards.o build/encryps.o

build/cards.o: src/cards.h src/cards.c
	$(cc) $(lang) $(ops) $(warns) -c -o build/cards.o src/cards.c

build/encryps.o: src/encryps.c
	$(cc) $(lang) $(ops) $(warns) -c -o build/encryps.o src/encryps.c

.PHONY: clean
clean:
	rm -rf build/*
